<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/29 0029
  Time: 17:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="JSPBasicGrammar.mysql06.driver.MysqlDriver" %>
<%@ page import="java.sql.*"%>
<html>
<head>
    <title>连接数据库获取新闻内容</title>
</head>
<body>

<%
MysqlDriver.Driver();
Connection con=MysqlDriver.getCon();
Statement ment=con.createStatement();
ResultSet set=ment.executeQuery("select * from servlet3");
while(set.next()){
    out.print(set.getString("email"));
}


%>

</body>
</html>
